
using System;
using System.Linq;
using Csla;
using Csla.Security;
using Csla.Validation;

namespace HousingInfo.Library
{ 
	public partial class AreaDetailBO : Csla.BusinessBase<AreaDetailBO>
	{

		#region Authorization Rules
		protected override void AddAuthorizationRules()
		{
			//TODO: Define authorization rules in AreaDetailBO
			//AuthorizationRules.AllowRead(AreaDetailIDProperty, "AreaDetailBOReadGroup");
			//AuthorizationRules.AllowRead(AreaIDProperty, "AreaDetailBOReadGroup");
			//AuthorizationRules.AllowRead(AreaDetailNameProperty, "AreaDetailBOReadGroup");
			//AuthorizationRules.AllowRead(IsActiveProperty, "AreaDetailBOReadGroup");

			//AuthorizationRules.AllowWrite(AreaIDProperty, "AreaDetailBOWriteGroup");
			//AuthorizationRules.AllowWrite(AreaDetailNameProperty, "AreaDetailBOWriteGroup");
			//AuthorizationRules.AllowWrite(IsActiveProperty, "AreaDetailBOWriteGroup");
		}
		#endregion //Authorization Rules

		private void AssignParentKey(HousingInfo.DataLinQ.AreaDetail data, AreaBO parent)
		{
            data.AreaID = parent.AreaID;
		}
	}
}
